{
  lib,
  stdenv,
  fetchurl,
}:

stdenv.mkDerivation rec {
  pname = "mkrand";
  version = "0.1.0";

  src = fetchurl {
    url = "https://github.com/mknight-tag/MKRAND/releases/download/v${version}/mkrand-${version}.tar.gz";
    sha256 = "1irwyv2j5c3606k3qbq77yrd65y27rcq3jdlp295rz875q8iq9fs";
  };

  doCheck = true;

  meta = {
    description = "Digital Random Bit Generator";
    mainProgram = "mkrand";
    longDescription = "MKRAND is a utility for generating random information.";
    homepage = "https://github.com/mknight-tag/MKRAND/";
    license = lib.licenses.mit;
    platforms = lib.platforms.all;
  };
}
